package cn.yinuo.website.medicine.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shiyang
 * @since 2019-05-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("medicine_problem")
public class MedicineProblem extends Model<MedicineProblem> {

    private static final long serialVersionUID = 1L;

    /**
     * key 自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 药品id
     */
    @TableField("medicine_id")
    private Long medicineId;

    /**
     * 文章id
     */
    @TableField("article_id")
    private Long articleId;

    /**
     * 创建时间
     */
    @TableField("created_dt")
    private Date createdDt;

    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;

    /**
     * 最后修改时间
     */
    @TableField("updated_dt")
    private Date updatedDt;

    /**
     * 最后修改人
     */
    @TableField("updated_by")
    private Long updatedBy;

    /**
     * 删除标志
     */
    @TableLogic
    private Boolean dr;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
